import request from '#/utils/requestAbort';

export async function queryDataPower(menuCode) {
  // 获取数据权限
  return request(`/power/dataPower/common/${menuCode}`);
}

export async function queryDataPowerToTianJi(menuCode) {
  // 获取数据权限(天机特殊处理)
  return request(`/purchaseinfo/dataPower/common/${menuCode}`);
}

export async function updateFeed(params) {
  // 验证码认证
  return request('/user/feedback/updateFeedback', {
    method: 'POST',
    data: params,
  });
}

export async function getStationLevelThree(data) {
  // 验证码认证
  return request('/power/station/getStationLevelThree', {
    method: 'POST',
    data: data,
  });
}

export async function postQueryProvinceList(menuCode) {
  // 查询省列表
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}
